×
Returns a string containing the JSON representation of the supplied value . If the parameter is an array or object, it will be serialized recursively.
People also ask
The json_encode() function is used to encode a value to JSON format. Syntax. json_encode(value, options, depth) ...
json_encode() takes a DS map or array that you have previously created and encodes it as a JSON string which you can then use as (for example) part of an ...
Test json_encode online. Execute json_encode with this online tool json_encode() - Returns the JSON representation of a value. Json Encode Online Tool.